package com.biglead.feign.clients;

import com.biglead.common.pojo.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user-service")
public interface FeignUserClient {

    @GetMapping("/user/{id}")
    UserInfo queryById(@PathVariable("id") Long id);

}
